package com.relytosoft.mizar.analyze.strategy.algorithm.structure.feign;

import com.relytosoft.dubhe.common.core.object.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;

/**
 * AlgoStructureFeignService
 *
 * @Author SunLi
 * @Date: 2022/5/13 11:11
 * @Version 1.0
 */

@FeignClient(url = "EMPTY", name = "Analyze-Strategy-Algo-Structure")
public interface AlgoStructureFeignService {
    @PostMapping("/algo/task/add")
    ResponseResult createTask(URI uri, @RequestBody String bodys, @RequestParam(name = "statusUploadUrl", required = false) String statusUploadUrl, @RequestParam(name = "uploadUrl", required = false) String uploadUrl);

    @GetMapping("/algo/task/stop")
    ResponseResult stopTask(URI uri, @RequestParam(name = "taskId") String taskId);

    @PostMapping("/algo/feature/extraction")
    ResponseResult feartureExtraction(URI uri, @RequestBody String bodys);
}
